/**
 *  app 与webview通信
 * @param message
 */
export const sendAppMessage = (message: string) => {
  (window as any)?.ReactNativeWebView?.postMessage(message);
};
/**
 * webview 初始化完成
 */
export const sendWebviewLoadendMessage = () => {
  sendAppMessage('loadend');
};
/**
 * 页面操作完成后，更新app中的待办列表
 */
export const sendWebviewCompleteStepTaskMessage = () => {
  sendAppMessage('completeStepTask');
};
